How to create computed column in SQL Server 2008 R2 [closed]

Posted by Smartboy on Programmers See other posts from Programmers or by Smartboy
Published on 2012-11-21T08:04:02Z Indexed on 2012/11/21 11:22 UTC
Read the original article Hit count: 183

Filed under:
|
|
|

I have a SQL Server 2008 R2 database. This database has two tables called Pictures and PictureUse.

Picture table has the following columns:

Id (int)  

PictureName (nvarchar(max))    

CreateDate (datetime ) 

PictureUse table has the following columns :

Id (int) 

Pictureid (int) 

CreateDate (datetime ) 

How to create a computed column in the Picture table which tells me that how many times this picture has been clicked?

© Programmers or respective owner

Related posts about sql

Related posts about sql-server